<?php
/**
 * Created by PhpStorm.
 * User: hisheng
 * Date: 2017/6/8
 * Time: 14:58
 */
namespace App\Dao;

use App\Loan;

class LoanDao
{
    public $loan;
    
    public function __construct(Loan $loan)
    {
        $this->loan = $loan;
    }
    
     public function sum(){
        return $this->loan->sum('apply_number');
     }
}
